home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / ab20_archive / datacomm / xpr / xprzmodem-2.51.lzh / xprzmodem2.5 / XprZmodem.Doc < prev    next >
Text File  |  1991-11-17  |  32KB  |  608 lines

  1.  
  2.                     Documentation for XPRZModem.library
  3.               Version 2.10, 12 February 1991, by Rick Huebner
  4.  
  5. |---
  6. |           Update comments for XprZmodem.Library
  7. |    Version 2.50 Update, 15 November 1991, by William M. Perkins
  8. |      Proto additions for the SAS 5.10B Compiler by Jim Cooper
  9. |---
  10.  
  11. |---
  12. |    All of my additions to this documentation are indicated by
  13. |  <--  this left margin braketing.   -WMP-
  14. |---
  15.  
  16. 1.  Introduction (or "What is this thing, anyway?")
  17. ---------------------------------------------------
  18.  
  19.      XPRZModem.library is an Amiga shared library (with full Lattice C
  20. source code) which provides ZModem file transfer capability to any
  21. XPR-compatible communications program.  The XPR external protocol standard
  22. describes an interface method which allows various file transfer protocols
  23. to be implemented as Amiga shared libraries which may then be used
  24. interchangeably in any compatible communications program.  This takes a
  25. heavy load off of the comm program author, who no longer has to support
  26. scads of different file transfer protocols (many of which are quite tricky
  27. to code) in their program in order to make it widely useful and popular.
  28. The comm program is also smaller and more efficient as a result, since all
  29. those obscure protocols (you know, the ones *you* don't need) are no longer
  30. taking up space.  The XPR standard also helps users, who can mix and match
  31. their favorite file transfer protocols (and implementations thereof) with
  32. their favorite comm programs.  And when new protocols are invented, the
  33. user simply plugs in a new library, and voila!, it's ready to use.
  34. Hopefully, making protocols easy to support will allow more and better comm
  35. programs to be written, as authors can concentrate on their programs
  36. instead of constantly re-inventing the wheel.
  37.  
  38.      Of course, for all of this wonderful stuff to happen, there needs to
  39. be a good selection of these XPR protocol libraries available to the
  40. public.  It's the classic chicken-and-egg problem; comm program authors
  41. won't be motivated to support the XPR standard unless there are a goodly
  42. number of protocols available for it.  And other programmers won't be
  43. motivated to write XPR protocol libraries until there are a goodly number
  44. of comm programs which can use them.  In an effort to do my bit [ B^) ] for
  45. the Amiga community, which has given me so many neat toys to play with over
  46. the past few years, I decided to try and help get the ball rolling.
  47.  
  48.      Hopefully, the early availability of a ZModem library will help
  49. stimulate interest in the XPR standard, resulting in better Amiga telecomms
  50. for all of us.  And by making my source code PD, I hope to help others
  51. interested in writing XPR protocol libraries by giving them some serious
  52. example code.  Also, having ZModem library code readily available to John
  53. Q. Hacker should help ensure a steady stream of new lemon-fresh enhanced
  54. ZModem libraries (with enzymes) for all of us to use in the future.
  55.  
  56.      Of course, no discussion of the XPR standard would be complete without
  57. giving proper credit to the author, Willy Langeveld of the Stanford Linear
  58. Accelerator Center.  Many thanks are due him for this effort.  If you have
  59. any further questions about the XPR standard, be sure and download the spec;
  60. it should be available on BIX (since he's a sysop there), or on most other
  61. major systems.  And I'll try to keep the current version available on my
  62. BBS, as well.
  63.  
  64.      All files in this archive which are not copyrighted are hereby
  65. released to the public domain (which they were anyway, by way of not being
  66. copyrighted, but I want to make sure YOU realize that).  Do as you like
  67. with them.  Please make lots of copies and distribute them all over the
  68. place, and make lots of derivative works, and everything!  Heck, you can
  69. even publicly perform and/or display this code if you can figure out how...
  70.  
  71.  
  72.  
  73. 2.  Installation (OK, enough chatter; let's get to work)
  74. --------------------------------------------------------
  75.  
  76.      Couldn't be easier.  Just copy the xprzmodem.library file into your
  77. LIBS: directory.  All XPR-compatible comm programs should provide a way for
  78. you to select which XPR protocol you wish to use, either by giving you a
  79. file requester showing LIBS:xpr*.library, or by automatically detecting
  80. these libraries and adding them into their menus.
  81.  
  82. WARNING:  Versions of VLT prior to revision 4.107 had a bug in the
  83. xpr_sflush() routine which caused random Guru 3 crashes on some systems.  If
  84. you're using a version of VLT older than 4.107, it would be a good idea to
  85. upgrade to the latest rev.  Besides, there's a bunch of new features you're
  86. missing, anyway...
  87.  
  88. ANOTHER WARNING:  Versions of VLT prior to 5.034 had a bug in the
  89. xpr_sread() function which caused them to (at least sometimes) fail to
  90. return any bytes received so far when an xpr_sread() call timed out.  This
  91. version of XPRZModem.library requires VLT version 5.034 or later.  (Yes,
  92. Willy, it really was broken B-))
  93.  
  94. |---
  95. |    XprZmodem.Library version 2.50 tested with WTerm version 0.80 and
  96. |    Willy's term program, VLT version 5.045.  No problems occured.  It
  97. |    should work fine with any term program that was able to work with
  98. |    the version 2.10 of XprZmodem.Library.    -WMP-
  99. |---
  100.  
  101. 3.  Options
  102. -----------
  103.  
  104.      The XPR standard lays out two ways for the comm program user to
  105. specify options for the XPR protocol.  The more primitive option is for the
  106. comm program to provide a method of passing an option string to the XPR
  107. library before transferring files.  The precise format and usage of this
  108. option string is left up to the XPR protocol author; the comm program just
  109. sends it verbatim.  If an environment variable is found with the same name
  110. as the XPR protocol (i.e. there's a file in the ENV: directory called
  111. "xprzmodem"), the comm program is supposed to use this string (contents of
  112. file) to initialize the protocol options.  Also, a menu option or some such
  113. should normally be provided which will allow the user to be prompted for
  114. the option string interactively.
  115.  
  116.      Version 2.0 of the XPR standard created a new, more sophisticated way
  117. for the comm program user to specify XPR options.  If the comm program
  118. supports it, the XPR library can give the comm program a list of option
  119. prompts, and the comm program can then let the user interactively set the
  120. various options individually, possibly even using nice gadgets and stuff.
  121.  
  122.      In any case, no matter how your particular comm program feels like
  123. handling it, these are the options supported by this implementation of
  124. ZModem:
  125.  
  126.           T{Y|N|?|C}   Text translation mode:
  127.              TY = Text Yes; if receiving, translate CR/LF pairs or solo
  128.                   CR chars to normal Amiga LF chars.  Ignore data past ^Z.
  129.                   If sending, suggests to receiver that they should receive
  130.                   this file in text mode.
  131.              TN = Text No; receive file verbatim, without changes.  If
  132.                   sending, suggest to receiver that they receive this
  133.                   file verbatim, without translations.
  134.              T? = Text status unknown; if receiving, use sender's
  135.                   suggestion as to whether to do EOL translations or not.
  136.                   If sending, tell receiver to use default mode, 'cause we
  137.                   don't know either.
  138.              TC = Text mode set by Comm program; the library asks the comm
  139.                   program whether or not to use Text mode for each file.
  140.                   If the comm program doesn't support the necessary
  141.                   xpr_finfo() call, or if the call fails, this option acts
  142.                   like T?.  From the user's point of view, what this option
  143.                   normally does is set the Text mode to match the comm
  144.                   program's built-in text/binary/end-of-line/translation
  145.                   mode, if any.
  146.  
  147.           O{Y|N|R|S}  Overwrite mode:
  148.              OY = Overwrite Yes; if about to receive file with same name as
  149.                   one which already exists, delete the old file and receive
  150.                   the new file in its place.
  151.              ON = Overwrite No; if about to receive file with same name as
  152.                   one which already exists, append ".dup" onto the name of
  153.                   the new file to keep them separate.
  154.              OR = Overwrite Resume; if about to receive file with same name
  155.                   as one which already exists, resume receiving file data
  156.                   from the current end of the existing file.
  157.              OS = Overwrite Skip; if (etc.), tell sender never mind, skip
  158.                   this file, we don't want it.  Batch transfers will move
  159.                   on to the next file in the set, if any.
  160.  
  161.           Bnnn   Buffer size:
  162.              XPRZModem.library adds a layer of file I/O buffering in
  163.              addition to whatever the comm program may or may not provide.
  164.              This option sets the size of XPRZModem's file I/O buffer in
  165.              kilobytes.  The minimum value is 1 KB, for those using RAM
  166.              drives or fast hard drives, or those whose comm programs
  167.              already provide sufficient buffering.  The maximum value is
  168.              as much contiguous RAM as you have available in your Amiga.
  169.              If you specify more than is actually available, XPRZModem will
  170.              keep decrementing the buffer size requested by 1 KB until the
  171.              memory allocation works.  That way, if your RAM is too
  172.              fragmented to use the amount you request, XPRZModem simply
  173.              uses the largest block available.  Buffering is especially
  174.              helpful for floppy drive users; it keeps your drive from
  175.              continuously gronking and slowing things down all through the
  176.              transfer.  NOTE: Versions of VLT prior to 5.034 couldn't handle
  177.              buffer sizes >= 32 KB.  If you wanted to use larger buffers
  178.              before and couldn't, try again now.
  179.  
  180.           Fnnn   Frame size:
  181.              Although normally avoided, ZModem has the ability to require
  182.              an ACK to be sent from the receiver to the sender every X-many
  183.              data bytes.  Normally you don't want to use this feature,
  184.              because not waiting for ACKs is part of how ZModem works so
  185.              fast.  However, this feature can be very useful in conjunction
  186.              with file I/O buffering on slow devices (namely those floppy
  187.              drives).  If you set up a large I/O buffer to avoid gronking
  188.              your floppy so often, you'll find that when the buffer finally
  189.              *does* get around to being flushed that it can take a looonng
  190.              time; so long, in fact, that the delay can cause timeouts and
  191.              errors.  But if you set your ZModem to require the sender to
  192.              wait for an ACK every buffer's-worth of data, the sender will
  193.              politely wait for you to flush your buffer to the slow floppy
  194.              and send it an ACK saying it's OK to continue now.  This value
  195.              should be set to 0 to disable ACKs (normal mode), or set it to
  196.              the actual number of data bytes allowed between ACKs.  For
  197.              example, if you set B64 because of your floppy, you should
  198.              also set F65536.
  199.  
  200.           Ennn   Error count:
  201.              This allows you to set the number of sequential errors which
  202.              will be required to convince ZModem to abort the transfer.  The
  203.              normal value is 10, meaning that 10 errors must happen in a row
  204.              with no valid data being transferred in order to cause an abort.
  205.              This setting is provided for those using XPRZModem with a BBS,
  206.              who may wish to use a relaxed setting, or those with really
  207.              lousy phone lines who are desparate and patient enough to want
  208.              the transfer to continue in spite of horrible performance.
  209.  
  210.           A{Y|N}   Auto-activate mode:
  211.              AY = Auto-activate Yes; if the comm program supports the
  212.                   ability, the library will automatically go into receive
  213.                   mode when the start of a ZModem download is detected.
  214.              AN = Auto-activate No; don't try to automatically start
  215.                   downloading, make the user activate it.
  216.  
  217.           D{Y|N}   Delete after sending:
  218.              DY = Delete Yes; delete each file after it has been
  219.                   sucessfully sent.
  220.              DN = Delete No; don't delete files after sending them.
  221.  
  222.           K{Y|N}   Keep partial files:
  223.              KY = Keep Yes; keep the fragment of a file received so far
  224.                   if file reception is aborted.  This allows you to use the
  225.                   Overwrite Resume option above to pick up where you left
  226.                   off on your next attempt.
  227.              KN = Keep No; delete any partially-received file after an
  228.                   aborted transfer.
  229.  
  230.           S{Y|N}   Send full directory path:
  231.              SY = Send path Yes; send full filenames including directory
  232.                   path to receiver.
  233.              SN = Send path No; send only simple filenames, not including
  234.                   directory path.
  235.  
  236.           R{Y|N}   Receive full directory path:
  237.              RY = Receive path Yes; use full filename exactly as received,
  238.                   instead of using the P option directory path.
  239.              RN = Receive path No; ignore received directory path (if any),
  240.                   use P option directory path instead.
  241.  
  242.           P{dir}   Path to use for received files:
  243.              Px = Store all received files in directory "x" if option RN
  244.                   set.  Ignored if option RY set.  "x" can be any valid
  245.                   existing directory, with or without trailing "/"
  246.                   (e.g. "Pdf0:", "PComm:hold", etc.).
  247.  
  248.      If setting the options via the option string method (either ENV: file
  249. or primitive comm program), note that the setting for each option must
  250. immediately follow the option character with no intervening characters
  251. ("TY", not "T Y" or "T=Y").  When setting multiple options at once,
  252. separate the options from each other with commas and/or spaces; for
  253. example, "TN,OR,F0".  You don't have to specify all options every time; the
  254. options you specify will be merged into the current option settings,
  255. replacing their old values.  Upper/lower case is not significant.  The
  256. default option settings if you don't change anything are "TC, ON, B16, F0,
  257. E10, AY, DN, KY, SN, RN, P".
  258.  
  259.      If the comm program supports the xpr_options() call added in version
  260. 2.0 of the XPR spec, you should be prompted for each option with a nice
  261. prompt message such as "Text mode (Y,N,?,C):" and possibly be able to use
  262. Intuition string and/or button gadgets instead of being stuck with the
  263. semi-cryptic option string format described above.
  264.  
  265.  
  266.  
  267. 4.  Serial port settings
  268. ------------------------
  269.  
  270.      ZModem (at least this implementation of it) requires that your serial
  271. port be set to 8 data bits, no parity, 1 stop bit.  This allows ZModem to
  272. send full 8-bit binary data bytes without having them munged on the way
  273. through the modem.  If your comm program supports the xpr_setserial()
  274. function, XPRZModem will use it to set your serial port to 8N1 before doing
  275. a transfer, and will set your port back the way it was again after it's
  276. done.  If your comm program doesn't support xpr_setserial(), you'll need to
  277. make sure it's in 8N1 mode yourself.
  278.  
  279.      ZModem works well in all serial port handshaking modes; none,
  280. XON/XOFF, or 7-wire/RTS/CTS.  Since any or all of those handshaking modes
  281. may be appropriate at different times, with different modems or remote
  282. systems, XPRZModem lets you set the handshaking mode and doesn't mess with
  283. it.
  284.  
  285.  
  286.  
  287. 5.  Receiving files
  288. -------------------
  289.  
  290.      Once you get the ZModem options and your serial port configuration set
  291. up properly, you're ready to actually use this thing (gasp!).  Receiving
  292. files via ZModem is quite simple.  First, get the file sender going by
  293. using whatever command it wants.  ZModem is a batch file transfer protocol,
  294. meaning that it's capable of transferring several files in a single
  295. exchange, so the remote system may allow you to specify multiple files to
  296. be sent to you at one time.  It may also allow you to use wildcard
  297. characters in the filename(s); this is all system dependant.
  298.  
  299.      This may be all you have to do.  If you specified option AY
  300. (auto-activate on), and your comm program supports it, XPRZModem should
  301. automatically activate at this point and start receiving your files.  If
  302. you specified AN, or your comm program doesn't support auto-activation, you
  303. should now use whatever option your comm program provides to activate file
  304. reception; this will usually be a menu option or button gadget.  Either
  305. way, once XPRZModem starts receiving files, it should automatically receive
  306. all of the files you specified into the proper directory as indicated by
  307. the R and P options.
  308.  
  309.      Make sure that you have set the ZModem options properly before
  310. starting the transfer; especially, make sure you only use TY if you know
  311. that all of the files being transferred in this batch are printable ASCII
  312. text files.  If you use TY on normal binary files like .ARCs or .ZOOs,
  313. they'll be mangled beyond use.
  314.  
  315.  
  316.  
  317. 6.  Sending files
  318. -----------------
  319.  
  320.      Sending files using ZModem is fairly straightforward.  First, activate
  321. the file receiver with whatever command the remote system requires.  You
  322. may or may not need to specify a filename or directory to the remote
  323. system; this depends on their implementation of ZModem.  Once the remote
  324. system is ready to receive files, activate your comm program's ZModem send
  325. function.  Your comm program will prompt you for which file(s) to send.
  326. Although ZModem is a batch protocol, your comm program may or may not allow
  327. you to specify multiple file names to be sent; also, wildcards may or may
  328. not be supported.  These decisions are up to the comm program author;
  329. ZModem will handle multiple files and wildcards if the comm program allows
  330. them.  Once you've specified the file name(s), the file(s) will be sent to
  331. the remote system.  Note that the T option serves only as a suggestion to
  332. the receiving system when sending files; the receiver makes the final
  333. decision as to whether to take your advice or to force the files to be
  334. received in text or binary mode.
  335.  
  336.      If errors occur while sending the file(s), you'll probably notice a
  337. small enhancement I made to the normal ZModem error recovery procedures.
  338. Normally, file transfer protocols have to compromise between efficient data
  339. transmission on good, clean phone lines and quick error recovery on bad,
  340. noisy phone lines.  If you pick a large packet size, you get high
  341. throughput on clean lines due to low packet overhead, but you have slow
  342. recovery times and large amounts of retransmitted data on noisy lines.  If
  343. you've used YModem on noisy lines you've seen this problem.  But, if you
  344. use small packets to reduce retransmitted data on noisy lines, you increase
  345. the amount of time the protocol spends sending packet overhead, and your
  346. throughput suffers.  The solution is to vary the block size according to
  347. the experienced error rate during the transfer.  That way you aren't stuck
  348. with a rigid packet length which will sometimes be the wrong size no matter
  349. what.  I came up with this idea back when I first wrote the ZModem code for
  350. Opus, and cleared it for future compatibility with ZModem's designer, Chuck
  351. Forsberg, back then.  Since then the basic concept has been extensively
  352. tested in the Opus BBS system, and has proven quite effective; it has also
  353. been incorporated into various other ZModem implementations over time.  The
  354. actual algorithm for deciding what size packets to use when is pretty much
  355. up to the protocol author; XPRZModem uses a modified version of the Opus
  356. algorithm which prevents locking the packet size at a small value when a
  357. large one-time burst of errors occurs.
  358.  
  359.  
  360.  
  361. 7.  Notes for comm program authors
  362. ----------------------------------
  363.  
  364.      That's pretty much everything you need to know in order to use
  365. XPRZModem properly.  Here are some notes for the "other" XPR standard
  366. users, namely the comm program authors:
  367.  
  368.      Certain XPR callback functions *must* be implemented by the comm
  369. program author in order for XPRZModem to be used.  If any of these
  370. functions are not supported by your comm program, XPRZModem will display an
  371. error message and abort when invoked.  These required functions are:
  372.  
  373.           xpr_fopen(), xpr_fclose(), xpr_fread(), xpr_fwrite(),
  374.           xpr_fseek(), xpr_sread(), xpr_swrite(), and xpr_update()
  375.  
  376.      The xpr_update() function provides many data fields for your comm
  377. program to potentially display to the user.  These are the XPR_UPDATE
  378. struct elements which XPRZModem will keep updated during transfers:
  379.  
  380.           xpru_protocol, xpru_filename, xpru_filesize, xpru_msg,
  381.           xpru_errormsg, xpru_blocks, xpru_blocksize, xpru_bytes,
  382.           xpru_errors, xpru_timeouts, xpru_blockcheck, xpru_expecttime,
  383.           xpru_elapsedtime, and xpru_datarate
  384.  
  385.      As you can see, XPRZModem tries to provide as many status fields as
  386. possible.  Although all of them are useful, the ones which are most
  387. important to ZModem users are filename, filesize, msg and/or errormsg, and
  388. bytes.  Please try to provide at least these fields in your status display,
  389. plus as many of the rest as you can manage.
  390.  
  391.      Although only the XPR callback functions listed above are crucial for
  392. XPRZModem, almost all of them are used if they are provided.  Although
  393. XPRZModem will function without any of the other routines, its performance
  394. or capabilities may be degraded somewhat.  Specifically, this is what you
  395. give up if you choose not to supply any of these other XPR callback
  396. functions:
  397.  
  398.           xpr_sflush(): Used when performing error recovery and resync
  399.                when sending files.  If not provided, extra timeout errors
  400.                and delayed error recovery will be likely.  The files will
  401.                still be transferred properly, but errors will degrade
  402.                overall throughput more than usual.
  403.  
  404.           xpr_chkabort(): Called between sending or receiving packets.
  405.                If not provided, there's no way for your comm program user
  406.                to abort a transfer in progress except by trying to somehow
  407.                force it to decide to give up and abort on its own, such as
  408.                by turning off the modem and hoping the protocol will abort
  409.                after enough timeouts (it will, eventually...).
  410.  
  411.            xpr_gets(): Called to prompt the user interactively for options
  412.                when your comm program invokes XProtocolSetup() with a null
  413.                xpr_filename field (if xpr_options() isn't available
  414.                instead).  If not provided, you'll have to prompt
  415.                the user for the options string yourself, and pass this
  416.                string in xpr_filename when invoking XProtocolSetup().
  417.  
  418.            xpr_setserial(): Called to obtain the current serial port
  419.                settings, and to change the serial port to 8N1 if it's not
  420.                already set that way.  If not provided, XPRZModem will
  421.                assume all transfers are being done at 2400 bps, which
  422.                won't hurt anything, and your users will have to make sure
  423.                that the serial port is set to 8N1 themselves.
  424.  
  425.            xpr_ffirst() and xpr_fnext(): If either of these routines are
  426.                missing, XPRZModem will lose the ability to send multiple
  427.                files in a batch.  The xpr_filename pointer passed to
  428.                XProtocolSend() will be assumed to point to the actual full
  429.                filename of the single file to be sent in this batch.  If
  430.                both of these routines are provided, XPRZModem will rely
  431.                upon them completely to obtain the names of the files to
  432.                send, and the xpr_filename pointer will not be used for any
  433.                purpose by XPRZModem except to be passed to ffirst/fnext.
  434.                This gives your comm program a way to send not just a single
  435.                filename template's worth of files in a batch, but a list of
  436.                different filenames.  If, for example, you set xpr_filename
  437.                to point to the first node of a linked list of filenames
  438.                and/or templates to be sent, rather than just having it
  439.                point to a string, you can have your ffirst and fnext
  440.                routines traverse this linked list in order to determine the
  441.                next file to be sent.  Or you could have xpr_filename point
  442.                to a buffer containing a list of filenames separated by
  443.                commas, and your ffirst/fnext routines could return each
  444.                filename in this list in turn.  The key here is that if you
  445.                provide these two routines, you're in complete control over
  446.                the series of names fed to XProtocolSend.  If you omit these
  447.                routines, XPRZModem is stuck with single-file mode.  Once
  448.                again, if these two routines are provided, XPRZModem will
  449.                *always* call them; it makes no attempt to use the
  450.                xpr_filename pointer for anything itself.  This is not
  451.                explicitly spelled out in the XPR standard, but it seems the
  452.                only reasonable way to handle batch protocols to me.
  453.                Hopefully other XPR library authors will follow this
  454.                precedent as well, so that comm program authors will be able
  455.                to count on multiple-filename batch sessions being handled
  456.                properly.
  457.  
  458.            xpr_finfo(): Used to determine the filesize of files being sent,
  459.                in order to tell the receiving system how big they are.
  460.                Also used to determine the size of a file which already
  461.                exists when in Overwrite Resume mode; XPRZModem must be able
  462.                to get the size of the current portion of the file in order
  463.                to be able to tell the sender where to resume sending from.
  464.                If this routine isn't provided, Overwrite Resume mode is
  465.                not allowed.  This routine is also used to check if Text
  466.                mode should be set to Y or N for each file when option TC
  467.                is set.
  468.                
  469.            xpr_options(): If you don't supply this, users will be stuck
  470.                with setting the library options via the semi-cryptic text
  471.                string method (ENV: and/or xpr_gets()).  This routine and
  472.                xpr_update() have a lot to do with the look and feel of your
  473.                program when using XPR libraries; any skimping on these two
  474.                routines will be painfully obvious to the user.  Conversely,
  475.                doing a nice job on these two routines will really make your
  476.                program shine.
  477.  
  478.            xpr_unlink(): Required by the DY and KN options, so if you don't
  479.                supply it, those options are not allowed.
  480.  
  481.  
  482.  
  483. 8.  The future
  484. --------------
  485.  
  486.      I don't want or expect this to be the last or only XPR ZModem library
  487. available.  There are a lot of less-commonly-used ZModem features which
  488. have popped up over the past few years, and many people might like to see
  489. some of them made available.  Such as 32-bit CRC (although I consider
  490. CRC-16 perfectly adequate for the max 1K packets sent by ZModem), full
  491. control-character escaping, or maybe 8th bit escaping to allow use of 7-bit
  492. serial channels.  I didn't want to add a bunch of rarely-used bells and
  493. whistles to this version of the library, because I want it to be able to
  494. serve as comprehensible example code.  I just want to provide a good solid
  495. ZModem which reliably handles the majority of people's needs.  Hopefully,
  496. this will serve as a foundation for future enhanced versions, while
  497. providing a safe fallback for people to come back to if that fancy new
  498. enhanced version (with neo-maxi zoomed weebies) turns out to need some more
  499. debugging.
  500.    
  501.      Bug reports, questions, or comments may be sent to me at:
  502.  
  503.           BIX: rahuebner
  504.           Compu$erve: 73105,1022
  505.  
  506.      Or, if you think it's important, and you want an answer in less than a
  507. week or two, call my BBS:
  508.  
  509.           The Wind Dragon Inn
  510.           1-402-291-8053, 300-9600+ bps, HST/V.32/V.42
  511.        or 1-402-291-3636, 300-2400 bps
  512.  
  513.      I check the messages on my BBS fairly often, so that's where to
  514. get ahold of me quick.  I'll also try and stock the latest XPR standard
  515. spec and XPR libraries there.
  516.  
  517. |---
  518. |    Any comments about the version 2.50 update code may be directed
  519. |    to me, William M. Perkins on BIX, with mail sent to wmperkins.
  520. |--- 
  521.  
  522.  
  523. 9.  The past (revision history)
  524. -------------------------------
  525. 1.0, 29 July 89:  Original release.
  526.  
  527.  
  528.  
  529. 1.1, 3 August 89:  Fixed zsdata() to send file data packet in one swrite()
  530. call instead of calling zsendline for every byte, to prevent hammering the
  531. serial.device with single-byte write requests during uploads, and to speed
  532. up effective data transmission rates.
  533.  
  534.  
  535.  
  536. 2.0, 28 October 89:  Converted from Manx to Lattice C 5.04.  Created
  537. prototypes and made other tweaks as required.  Designed new library skeleton
  538. for Lattice code, replacing the old Manx library skeleton.  Added new
  539. options TC, A, D, K, S, R, and P.  Added support for xpr_options() callback
  540. routine, and generally brought things up to par with XPR Spec 2.0.
  541.  
  542.  
  543.  
  544. 2.10, 12 February 91: Fixed the following generally minor problems:
  545.  
  546.   No longer munges A6 register (this was potentially serious), and added
  547. callback glue to ensure comm program can't munge OUR registers either.
  548. Decided that the protective glue was much safer than the more elegant direct
  549. invocation used in version 2.0.
  550.  
  551.   Slightly less transmission overhead (concatenates all output into single
  552. swrites, builds output packets a bit faster).
  553.  
  554.   Considerably less receive overhead; does a lot more waiting and a lot
  555. fewer sreads, especially at high speed.  WARNING: this change doesn't work
  556. with VLT version 4.846 or earlier (yes, Willy; it really was broken B-)).
  557. This change may or may not actually do you any good, depending upon how
  558. your comm program implements the xpr_sread() function.
  559.  
  560.   Fixed problems getting synchronized with some systems on uploads.
  561.  
  562.   No longer closes files twice.
  563.  
  564.   Now uses fully-reentrant sprintf() from amiga.lib; no more nasty BSS.
  565.  
  566.   A couple of obscure error messages were > 50 bytes long, causing problems
  567. with some comm program's transfer status windows, e.g. the infamouse VLT
  568. "Incredible Shrinking Status Window."
  569.  
  570.   Stabilized spastic data rate by computing elapsed time more accurately.
  571.  
  572.   Fixed sprintf() error which caused invalid filelength to be sent on uploads.
  573.  
  574.   Aligned all data for optimal performance on 68030++ CPUs (now that I have
  575. my A3000... B-)).  Doesn't really make any noticeable difference, but it
  576. makes us 68030 owners feel better anyway.  I'm also including a version of
  577. the library compiled for the 68020+ CPU, on the same principle.
  578.  
  579.   Now uses .DUP2 instead of .DUP.DUP, etc.
  580.  
  581.   Added config option E for number of errors which cause an abort.
  582.  
  583.   Fixed bogus IO_Torture false alarm concerning timer.device.
  584.  
  585.   Tried to fix an elusive Enforcer hit on reading location 0, but I'm not
  586. sure I really got it, since I had trouble reproducing the problem.
  587.  
  588. |---
  589. |    2.50 version, 15 November 1991:  Added code to support 32 bit CRC
  590. |    (Circular Redundency Check).  CRC-32 adds a little more protection
  591. |    to the data being sent and received than does CRC-16.  Source for
  592. |    the CRC-32 additions came from the Unix version of RZ/SZ by Chuck
  593. |    Forsberg.
  594. |
  595. |    Added code to update_rate() function in utils.c to avoid the
  596. |    Guru # 80000005 if you decide to adjust the system clock during an 
  597. |    upload or download from Daylight Saving Time to Standard Time.  :-)
  598. |
  599. |    Proto additions using libinit.o and libent.o, and eliminating all
  600. |    of the assembler code was supplied by Jim Cooper of SAS.  Jim
  601. |    also supplied the mysprintf() code to replace sprintf().  This
  602. |    version of XprZmodem can be compiled with the SAS version 5.10 C 
  603. |    Compiler.  I do not know how well it might compile with the Aztec
  604. |    compiler.
  605. |
  606. |    -WMP-
  607. |---
  608.